/**
 * 
 */
package design_pattern.proxy.searcher;

/**
 * @author linzq
 *
 */
public class UsageLogger {

  private String userId;

  public UsageLogger(String userId) {
    this.userId = userId;
  }

  public void save(String userId) {
    this.userId = userId;
    save();
  }

  /**
   * 
   */
  private void save() {
    // 执行保存代码，如SQL
    System.out.println("保存User");
  }

}
